class CreateAlertRecords < ActiveRecord::Migration[7.2]
  def change
    create_table :alert_records do |t|
      t.references :alert_rule
      t.string :name
      t.datetime :alert_time
      t.string :value
      t.string :status
      t.string :level
      t.text :message

      t.timestamps
    end
  end
end
